java remove space at the end of string

48

java 8 remove spaces from string -

a.replaceAll("\\s+","");

Comments

Submit
0 Comments